import i18n from '@app-base/common/utils/i18next';
import { documentV2 } from '@app-nextmesh/domain';
import { NMMeshBaseCommand } from '@app-nextmesh/types/command';
import { BaseSeedDialog } from './BaseSeed';

export const cmdMeshLineMesh: NMMeshBaseCommand = {
  id: 'cmdMeshLineMesh',
  label: 'command.mesh.lineMesh',
  icon: 'commands/simu/lineMesh',
  create: (label, onClose, _, params) => (
    <BaseSeedDialog
      title={i18n.t(label)}
      onClose={onClose}
      params={params}
      request={documentV2.lineMesh}
    />
  ),
};
